package com.ruoyi.pk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pk.mapper.PkZlInstructionMapper;
import com.ruoyi.pk.domain.PkZlInstruction;
import com.ruoyi.pk.service.IPkZlInstructionService;

/**
 * 主粮指导书Service业务层处理
 * 
 * @author wang
 * @date 2021-09-10
 */
@Service
public class PkZlInstructionServiceImpl implements IPkZlInstructionService 
{
    @Autowired
    private PkZlInstructionMapper pkZlInstructionMapper;

    /**
     * 查询主粮指导书
     * 
     * @param id 主粮指导书主键
     * @return 主粮指导书
     */
    @Override
    public PkZlInstruction selectPkZlInstructionById(Long id)
    {
        return pkZlInstructionMapper.selectPkZlInstructionById(id);
    }

    /**
     * 查询主粮指导书列表
     * 
     * @param pkZlInstruction 主粮指导书
     * @return 主粮指导书
     */
    @Override
    public List<PkZlInstruction> selectPkZlInstructionList(PkZlInstruction pkZlInstruction)
    {
        return pkZlInstructionMapper.selectPkZlInstructionList(pkZlInstruction);
    }

    /**
     * 新增主粮指导书
     * 
     * @param pkZlInstruction 主粮指导书
     * @return 结果
     */
    @Override
    public int insertPkZlInstruction(PkZlInstruction pkZlInstruction)
    {
        return pkZlInstructionMapper.insertPkZlInstruction(pkZlInstruction);
    }

    /**
     * 修改主粮指导书
     * 
     * @param pkZlInstruction 主粮指导书
     * @return 结果
     */
    @Override
    public int updatePkZlInstruction(PkZlInstruction pkZlInstruction)
    {
        return pkZlInstructionMapper.updatePkZlInstruction(pkZlInstruction);
    }

    /**
     * 批量删除主粮指导书
     * 
     * @param ids 需要删除的主粮指导书主键
     * @return 结果
     */
    @Override
    public int deletePkZlInstructionByIds(Long[] ids)
    {
        return pkZlInstructionMapper.deletePkZlInstructionByIds(ids);
    }

    /**
     * 删除主粮指导书信息
     * 
     * @param id 主粮指导书主键
     * @return 结果
     */
    @Override
    public int deletePkZlInstructionById(Long id)
    {
        return pkZlInstructionMapper.deletePkZlInstructionById(id);
    }
}
